-- GENERATED SPELL FOR [Saltscale Oracle] --


function spell0_873(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(11986,pUnit)
pUnit:RegisterEvent('Sorts_873', 3000, 1)
end

function spell1_873(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_873', 3000, 1)
end

function Sorts_873(pUnit, Event)
local choix_sorts_873 = math.random(0, 1)
if choix_sorts_873 == 0 then
pUnit:RegisterEvent('spell0_873', 1, 1)
end
if choix_sorts_873 == 1 then
pUnit:RegisterEvent('spell1_873', 1, 1)
end
end

function mob873_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_873', math.random(1500, 3000), 1)
end

function mob873_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob873_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob873_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(873, 1, 'mob873_Action')
RegisterUnitEvent(873, 2, 'mob873_Leave')
RegisterUnitEvent(873, 3, 'mob873_Kill')
RegisterUnitEvent(873, 4, 'mob873_Die')
